"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import re_path
from app01 import views

urlpatterns = [
    re_path(r'^login/$', views.Login.as_view(), name='login'),
    re_path(r'^user/list/$', views.UserList.as_view(), name='user'),
    re_path(r'^user/add/$', views.AddUser.as_view(), name='add_user'),
    re_path(r'^user/del/(?P<pk>\d+)/$', views.DelUser.as_view(), name='del_user'),
    re_path(r'^user/edit/(?P<pk>\d+)/$', views.EditUser.as_view(), name='edit_user'),
    re_path(r'^logout/$', views.Logout.as_view(), name='logout'),
    re_path(r'^host/$', views.HostList.as_view(), name='host'),
    re_path(r'^host/add/$', views.AddHost.as_view(), name='add_host'),
    re_path(r'^host/edit/(?P<pk>\d+)/$', views.EditHost.as_view(), name='edit_host'),
    re_path(r'^host/del/(?P<pk>\d+)/$', views.DelHost.as_view(), name='del_host'),
    re_path(r'^serviceLine/$', views.ServiceLineList.as_view(), name='serviceLine'),
    re_path(r'^serviceLine/add/$', views.AddServiceLine.as_view(), name='add_serviceLine'),
    re_path(r'^serviceLine/edit/(?P<pk>\d+)/$', views.EditServiceLine.as_view(), name='edit_serviceLine'),
    re_path(r'^serviceLine/del/(?P<pk>\d+)/$', views.DelServiceLine.as_view(), name='del_serviceLine'),
    re_path(r'^host/show/(?P<pk>\d+)/$', views.ShowHost.as_view(), name='show_host'),
    re_path(r'^serviceLine/user/$', views.ServiceLineUser.as_view(), name='serviceLine_user'),
    re_path(r'^serviceLine_user/del/(?P<ser_pk>\d+)/(?P<user_pk>\d+)/$', views.DelServiceLineUser.as_view(), name='del_serviceLine_user'),
    re_path(r'^serviceLine_user/edit/(?P<ser_pk>\d+)/(?P<user_pk>\d+)/$', views.EditServiceLineUser.as_view(), name='edit_serviceLine_user'),
    re_path(r'^serviceLine_user/add/$', views.AddServiceLineUser.as_view(), name='add_serviceLine_user'),
    re_path(r'^user/show/(?P<pk>\d+)/$', views.ShowUser.as_view(), name='show_user'),
    re_path(r'^serviceLine/show/(?P<pk>\d+)/$', views.ShowServiceLine.as_view(), name='show_serviceLine'),
    re_path(r'^book/$', views.Book.as_view(), name='book'),
]
